# FROM gvenzl/oracle-xe:11
FROM pubrepo.jiagouyun.com/image-repo-for-testing/oracle:11g-xe-datakit

ADD container-entrypoint.sh /u01/app/oracle/
ADD run.sh /u01/app/oracle/
# ADD instantclient_21_10 /opt/instantclient/
# ADD oracle /opt/oracle/oracle

# ENV LD_LIBRARY_PATH=/root/data/instantclient

USER root

RUN mkdir -p /usr/local/datakit/externals \
  && chown -R oracle:dba /usr/local/datakit/externals \
  && rm -rf /opt/*

USER oracle

# ENTRYPOINT ["/u01/app/oracle/container-entrypoint.sh"]
